<?
$page_title="Manage Sevadhari - Request List";
$mindex=3;
$profile_menu=1;
?>
<?include("includes/header.php") ?>

<?
$query="select * from bkitc_seva_request order by req_submitted_date desc";
$req_info=qry_data($query);
?>
<div class="break"></div>
<div class="fleft">
<ul class="subMenu">

<li style="width:200px"> <a href="registrants.php?seva=1" >View Seva Registrations </a></li>

</ul>
</div>
<table   class="table_panel" width="100%"  cellspacing="0" cellpadding="4">
	<tr  align="left">
	<th width="5">S.No</th>

	<th style="width:120px">Req.Date</th>
	<th>Status</th>
	<th >Location </th>
	<th>Date / Timings</th>
	<th>Other Info</th>
	<th>View</th>
	
	</tr>
	<? foreach($req_info as $i=>$req) {?>

	<tr <?if($i%2==0) echo 'class="white_bg"'; else echo 'class="grey_bg"' ?>>
	<td><?=$i+1;?></td>
	
	<td ><?=$req["req_submitted_date"];?></td>
	<td><?=$seva_req_status[$req["approval_status"]];?></td>
	<td><?=$seva_location[$req["seva_location"]];?></td>
	<td>
	<?if($req["seva_location"]==1){?>
	Week Days : <?=$req["week_days_time"]?><br/>
	Week Ends &nbsp;&nbsp;&nbsp;: <?=$req["week_ends_time"]?><br/>
	
	<? }else{ ?>
	From : <?=$req["from_date"]?><br/>
	To &nbsp;&nbsp;&nbsp;: <?=$req["to_date"]?><br/>
	<? } ?>
	</td>
	<td><?=$req["other_info"]?></td>
	<td><a href="view_sevarequest.php?req_id=<?=$req["request_id"]?>">View</a></td>
	</tr>
	
	<? } ?>
</table>
	

<?include("includes/footer.php") ?>